package com.the4man.cnbdw.service.impl;

import com.the4man.cnbdw.dao.PointInfoMapper;
import com.the4man.cnbdw.service.AbstractService;
import com.the4man.cnbdw.service.PointInfoService;
import com.the4man.framework.model.PointInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by lenovo on 2017/12/12.
 */
@Service("pointInfoService")
public class PointInfoServiceImpl extends AbstractService<PointInfo> implements PointInfoService {
    @Autowired
    PointInfoMapper pointInfoMapper;

    public PointInfoServiceImpl() {
    }

    public List<Map> selectByEmpId(Map map) {
        return this.pointInfoMapper.selectByEmpId(map);
    }

    public List<Map> selectByApMac(Map map) {
        return this.pointInfoMapper.selectByApMac(map);
    }

    public List<Map> selectBySmapId(Map map) {
        return this.pointInfoMapper.selectBySmapId(map);
    }

    public List<Map> selectByDeviceMac(Map map) {
        return this.pointInfoMapper.selectByDeviceMac(map);
    }

    public int countALL() {
        return this.pointInfoMapper.countAll();
    }

    public void deleteSome() {
        this.pointInfoMapper.deleteSome();
    }

    public List<PointInfo> selectAllPoint() {
        return this.pointInfoMapper.selectAllPoint();
    }
}
